home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v9n02.arc / REMFREE.BAT < prev    next >
DOS Batch File  |  1990-01-02  |  594b  |  18 lines

  1. @ECHO OFF
  2. IF NOT '%1'=='' GOTO ok
  3. ECHO Syntax: "REMFREE batchname"
  4. ECHO REMFREE.BAT takes its input batch file and strips out all
  5. ECHO lines containing "REM" followed by a space.  It renames the
  6. ECHO original batch file to have the extension "REM".
  7. REM -------- Create QUIT.BAT with the command "REM>QUIT.BAT"
  8. QUIT
  9. :ok
  10. IF EXIST %1.BAT GOTO ok2
  11. ECHO The command line parameter for REMFREE must be a batch
  12. ECHO file name _without_ the BAT extension
  13. QUIT
  14. :ok2
  15. REN %1.BAT %1.REM
  16. TYPE %1.REM | FIND /V "REM " > %1.BAT
  17. ECHO Original stored as %1.REM -- REM-free copy is %1.BAT now.
  18.